package com.example.software.dao;

import com.example.software.entity.DiagnosisEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 诊断表

 * 
 * @author wxy
 * @email wxy9496099@163.com
 * @date 2024-10-28 10:54:37
 */
@Mapper
public interface DiagnosisDao extends BaseMapper<DiagnosisEntity> {

    /**
     * 根据预约id查询诊断信息
     * @param recodeId
     * @return
     */
    @Select("select * from diagnosis where recode_id = #{recodeId}")
    DiagnosisEntity getByRecodeId(Integer recodeId);
}
